import VueRouter from 'vue-router'


// 导入组件
import home from './componnets/tabbar/home.vue'


import member from './componnets/tabbar/member.vue'

import search from './componnets/tabbar/search.vue'

import shop from './componnets/tabbar/shopcar.vue'

import newsLists from './componnets/news/newsLists.vue'

import  newsListinfo from './componnets/news/newsListinfo.vue'

import photoList from './componnets/photos/photoList.vue'

import photoinfo from './componnets/photos/photoinfo.vue'

import goodsList from './componnets/goods/goodsList.vue'

import goodsInfo from './componnets/goods/goodsInfo.vue'

import goodsjianjie from './componnets/goods/goodsjianjie.vue'

import goodsxiangqing from './componnets/goods/goodsxiangqing.vue'

const router = new VueRouter({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:home},
    {path:'/member',component:member},
    {path:'/shopcar',component:shop},
    {path:'/search',component:search},
    {path:'/home/newsLists',component:newsLists},
    {path:'/home/newsListinfo/:id',component:newsListinfo},
    {path:'/home/photoList',component:photoList},
    {path:'/home/photoinfo/:id',component:photoinfo},
    {path:'/home/goodsList',component:goodsList},
    {path:'/home/goodsInfo/:id',component:goodsInfo},
    {path:'/home/goodsjianjie/:id',component:goodsjianjie,name:'goodsjianjie'},
    {path:'/home/goodsxiangqing/:id',component:goodsxiangqing,name:'goodsxiangqing'}
  ],
  linkActiveClass:'mui-active'
})

export default router